﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Locations.aspx.cs" Inherits="Ewma.Locations" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
- Your locations
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% if (Membership.GetUser () == null)
   { %>
  Only when logged
<% }
   else
   { %>

   This would be a list of all your locations...

   <%
       List<Ewma.Data.Location> l = new List<Ewma.Data.Location> ();
       l.Add (new Ewma.Data.Location
       {
           Name = "Blocry"
       });
       l.Add (new Ewma.Data.Location
       {
           Name = "Tombouctou"
       });

       foreach (var loc in l)
       {
         %>
         <a href="NewEvent.aspx">
         <% =loc.Name %>
         </a><hr />
         <% } %>
   <a href="NewLocation.aspx">Create a new location</a>
<% } %>
</asp:Content>
